package modele;

import java.util.ArrayList;

public class Badge {
	
	private String ID;
	private ArrayList<Batiment> batiments;
	
	public Badge(String ID, ArrayList <Batiment> batiments) {
		this.setID(ID);
		this.setBatiment(batiments);
	}

	public String getID() {
		return ID;
	}

	public void setID(String iD) {
		ID = iD;
	}
	
	public ArrayList<Batiment> getBatiment() {
		return batiments;
	}

	public void setBatiment(ArrayList<Batiment> batiment) {
		this.batiments = batiment;
	}
	
	public String toString() {
		String lBat = "";
		for(Batiment e : this.getBatiment()) {
			lBat += "\t"+e.toString()+"\n";
		}
		return lBat;
	}
}
